import { defineConfig } from 'rspress/config'

export default defineConfig({
  root: 'docs',
  title: 'tinyzk-admin-template',
  description: '一套基于vue3、ant-design-vue、typesScript、rsbuild的后台集成开发模板',
  themeConfig: {
    outlineTitle: '目录',
    nav: [
      {
        text: '指南',
        items: [
          { text: '快速开始', link: '/guide/introduction.html' },
          { text: '深入', link: '/guide/more.html' }
        ]
      },
      { text: '组件', link: '/guide/components.html' },
      { text: 'hooks', link: '/guide/hooks.html' },
      { text: '常见问题', link: '/guide/issus.html' },
      {
        text: '相关链接',
        items: [
          { text: 'codeUp 源码', link: 'https://codeup.aliyun.com/tinyzk/tinyzk-web-common/tinyzk-admin-template.git' },
          { text: 'class-transformer 文档', link: 'https://www.npmjs.com/package/class-transformer' },
          { text: 'Pinia 文档', link: 'https://pinia.vuejs.org/' },
          { text: 'Rsbuild 文档', link: 'https://rsbuild.rs/' },
          { text: 'Ant Design Vue 文档', link: 'https://antdv.com/' },
          { text: 'Vue 3 文档', link: 'https://vuejs.org/' }
        ]
      }
    ],
    sidebar: {
      '/guide/': [
        {
          text: '指南',
          link: '/guide/getting-started',
          items: [
            {
              text: '介绍',
              link: '/guide/introduction'
            },
            {
              text: '开始',
              link: '/guide'
            }
          ]
        }
      ]
    }
  }
})
